package cn.edu.zust.zql.service;

import cn.edu.zust.zql.dao.Dao;
import cn.edu.zust.zql.model.Subject;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2016/12/22.
 */
@Service
public class SubjectServiceImpl implements SubjectService {
    @Resource
    private Dao dao;


    public List<Subject> getAllSubject() {

        return dao.findForList("SubjectMapper.getAllSubject", null);
    }
}
